package com.ztesoft.web.baseconfig.db.po;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;

public class DmTargetTablePO extends AbstractDto {
	private Integer targetDataId;
	private Integer sourceDataId;
	private Integer dmPlanId;
	private Integer seqNbr;
	private Integer dbLinkId;
	private String dbUserName;
	private String tableName;
	// 源数据库ID
	private Integer srcDbLinkId;
	// 源数据库用户名
	private String srcDbUserName;
	// 源表名
	private String srcTableName;
	private String subFlag;
	private Integer oneRecordSize;
	private Integer staffId;
	private String state;
	private Date stateDate;
	private Date createDate;
	private Integer canDataRecovery;

	private String targetTableStr;
	private List<TargetTablePO> targetTables;
	private String targetColMaps;
	private List<Object> targetColMapList;

	// 是否是编辑状态，前台传后台，0-新增，1-编辑
	private Integer isEdit = 0;
	// 字段映射是否自动完成
	private Integer columnsRelationIsOK = 0;
	// 该表的所有字段
	private ColumnNamePO[] allColumns;

	// 表名，分表控件
	private TableNamePO[] tableNames;
	// 字段映射
	private List<ColumnsRelationPO> columnsRelationPOList;
	// 字段映射-已经匹配好的
	private List<ColumnsRelationPO> hasOkColumnsRelationPOList;

	public Integer getCanDataRecovery() {
		return canDataRecovery;
	}

	public void setCanDataRecovery(Integer canDataRecovery) {
		this.canDataRecovery = canDataRecovery;
	}

	public Integer getDmPlanId() {
		return dmPlanId;
	}

	public void setDmPlanId(Integer dmPlanId) {
		this.dmPlanId = dmPlanId;
	}

	public Integer getColumnsRelationIsOK() {
		return columnsRelationIsOK;
	}

	public void setColumnsRelationIsOK(Integer columnsRelationIsOK) {
		this.columnsRelationIsOK = columnsRelationIsOK;
	}

	public Integer getSrcDbLinkId() {
		return srcDbLinkId;
	}

	public void setSrcDbLinkId(Integer srcDbLinkId) {
		this.srcDbLinkId = srcDbLinkId;
	}

	public String getSrcDbUserName() {
		return srcDbUserName;
	}

	public void setSrcDbUserName(String srcDbUserName) {
		this.srcDbUserName = srcDbUserName;
	}

	public String getSrcTableName() {
		return srcTableName;
	}

	public void setSrcTableName(String srcTableName) {
		this.srcTableName = srcTableName;
	}

	public Integer getIsEdit() {
		return isEdit;
	}

	public void setIsEdit(Integer isEdit) {
		this.isEdit = isEdit;
	}

	public ColumnNamePO[] getAllColumns() {
		return allColumns;
	}

	public void setAllColumns(ColumnNamePO[] allColumns) {
		this.allColumns = allColumns;
	}

	public List<ColumnsRelationPO> getHasOkColumnsRelationPOList() {
		return hasOkColumnsRelationPOList;
	}

	public void setHasOkColumnsRelationPOList(List<ColumnsRelationPO> hasOkColumnsRelationPOList) {
		this.hasOkColumnsRelationPOList = hasOkColumnsRelationPOList;
	}

	public List<ColumnsRelationPO> getColumnsRelationPOList() {
		return columnsRelationPOList;
	}

	public void setColumnsRelationPOList(List<ColumnsRelationPO> columnsRelationPOList) {
		this.columnsRelationPOList = columnsRelationPOList;
	}

	public TableNamePO[] getTableNames() {
		return tableNames;
	}

	public void setTableNames(TableNamePO[] tableNames) {
		this.tableNames = tableNames;
	}

	public List<Object> getTargetColMapList() {
		return targetColMapList;
	}

	public void setTargetColMapList(List<Object> targetColMapList) {
		this.targetColMapList = targetColMapList;
	}

	public String getTargetColMaps() {
		return targetColMaps;
	}

	public void setTargetColMaps(String targetColMaps) {
		this.targetColMaps = targetColMaps;
	}

	public String getDbUserName() {
		return dbUserName;
	}

	public void setDbUserName(String dbUserName) {
		this.dbUserName = dbUserName;
	}

	public String getTargetTableStr() {
		return targetTableStr;
	}

	public void setTargetTableStr(String targetTableStr) {
		this.targetTableStr = targetTableStr;
	}

	public List<TargetTablePO> getTargetTables() {
		return targetTables;
	}

	public void setTargetTables(List<TargetTablePO> targetTables) {
		this.targetTables = targetTables;
	}

	public Integer getTargetDataId() {
		return targetDataId;
	}

	public void setTargetDataId(Integer targetDataId) {
		this.targetDataId = targetDataId;
	}

	public Integer getSourceDataId() {
		return sourceDataId;
	}

	public void setSourceDataId(Integer sourceDataId) {
		this.sourceDataId = sourceDataId;
	}

	public Integer getSeqNbr() {
		return seqNbr;
	}

	public void setSeqNbr(Integer seqNbr) {
		this.seqNbr = seqNbr;
	}

	public Integer getDbLinkId() {
		return dbLinkId;
	}

	public void setDbLinkId(Integer dbLinkId) {
		this.dbLinkId = dbLinkId;
	}

	public String getTableName() {
		return StringUtils.isBlank(tableName) ? tableName : tableName.trim();
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getSubFlag() {
		return StringUtils.isBlank(subFlag) ? subFlag : subFlag.trim();
	}

	public void setSubFlag(String subFlag) {
		this.subFlag = subFlag;
	}

	public Integer getOneRecordSize() {
		return oneRecordSize;
	}

	public void setOneRecordSize(Integer oneRecordSize) {
		this.oneRecordSize = oneRecordSize;
	}

	public Integer getStaffId() {
		return staffId;
	}

	public void setStaffId(Integer staffId) {
		this.staffId = staffId;
	}

	public String getState() {
		return StringUtils.isBlank(state) ? state : state.trim();
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getStateDate() {
		return stateDate;
	}

	public void setStateDate(Date stateDate) {
		this.stateDate = stateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}